home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / OEMNXPST.IN_ / oemnxpst.inf
INI File  |  1996-07-12  |  15KB  |  400 lines

  1. [Identification]
  2.     OptionType = NetTransport
  3. [Options]
  4.     STREAMS
  5. [FileConstants]
  6. Manufacturer    = "Microsoft"
  7. ProductMajorVersion     = "4"
  8. ProductMinorVersion     = "0"
  9. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  10. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  11. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  12. ProductSTREAMSName      = "Streams"
  13. ProductSTREAMSImagePath = "\SystemRoot\System32\drivers\streams.sys"
  14. ProductSTREAMSSvcType   = "kernel"
  15. NetRuleSTREAMSType      = "streams streamsEnvironment streamsEnvironment"
  16. NetRuleSTREAMSUse       = $(SoftwareType)" yes yes"
  17. NetRuleSTREAMSBindForm  = """Streams"" yes yes streams"
  18. NetRuleSTREAMSClassList = {"streamsEnvironment basic",+
  19.                            "streamsStack basic"}
  20. NetRuleSTREAMSBindList  = {"streamsEnvironment ndisDriver non non 100",+
  21.                            "streamsStack streamsEnvironment exclusive non 100"}
  22. ProductOpSupport     = 132 
  23. STREAMS_PATH    = "SYSTEM\currentcontrolset\services\streams"
  24. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(Product$(Option)Name)"\CurrentVersion"
  25. LinkageKeyName  = $(!NTN_ServiceBase)"\Tcpip\Linkage"
  26. ServiceTCPIPKeyName = $(!NTN_ServiceBase)"\Tcpip"
  27. ServiceKeyName  = $(!NTN_ServiceBase)
  28. DosDevices      = "SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices"
  29. [GeneralConstants]
  30. UtilityInf       = "UTILITY.INF"
  31. subroutineinf    = "SUBROUTN.INF"
  32. SoftwareType     = "transport"
  33. Exit_Code        = 0
  34. BillboardVisible = 0
  35. from      = ""
  36. to        = ""
  37. ExitCodeOk     = 0
  38. ExitCodeCancel = 1
  39. ExitCodeFatal  = 2
  40. KeyNull         = ""
  41. MAXIMUM_ALLOWED   = 33554432
  42. RegistryErrorIndex = NO_ERROR
  43. KeyProduct      = ""
  44. KeyParameters   = ""
  45. TRUE            = 1
  46. FALSE           = 0
  47. NoTitle         = 0
  48. ExitState   = "Active"
  49. OldVersionExisted = $(FALSE)
  50. DriverPath      = $(!STF_NTPATH)\drivers
  51. [date]
  52.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  53. [Identify]
  54.     read-syms Identification
  55.     set Status     = STATUS_SUCCESSFUL
  56.     set Identifier = $(OptionType)
  57.     set Media      = #("Source Media Descriptions", 1, 1)
  58.     Return $(Status) $(Identifier) $(Media)
  59. [ReturnOptions]
  60.     set Status        = STATUS_FAILED
  61.     set OptionList     = {}
  62.     set OptionTextList = {}
  63.     set LanguageList = ^(LanguagesSupported, 1)
  64.     Ifcontains(i) $($0) in $(LanguageList)
  65.         goto returnoptions
  66.     else
  67.         set Status = STATUS_NOLANGUAGE
  68.         goto finish_ReturnOptions
  69.     endif
  70. returnoptions = +
  71.     set OptionList     = ^(Options, 1)
  72.     set OptionTextList = ^(OptionsText$($0), 1)
  73.     set Status         = STATUS_SUCCESSFUL
  74. finish_ReturnOptions = +
  75.     Return $(Status) $(OptionList) $(OptionTextList)
  76. [InstallOption]
  77.     set Option   = $($1)
  78.     set SrcDir   = $($2)
  79.     set AddCopy  = $($3)
  80.     set DoCopy   = $($4)
  81.     set DoConfig = $($5)
  82.     set LanguageList = ^(LanguagesSupported, 1)
  83.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  84.         Return STATUS_NOLANGUAGE
  85.     endif
  86.     set-subst LF = "\n"
  87.     read-syms GeneralConstants
  88.     read-syms FileConstants
  89.     read-syms DialogConstants$(!STF_LANGUAGE)
  90.     ifstr(i) $(!NTN_Origination) == "NCPA"
  91.         set Continue = $(OK)
  92.     endif
  93.     read-syms FileConstants$(!STF_LANGUAGE)
  94.     detect date
  95.     set-title  $(FunctionTitle)
  96.     set to   = Begin
  97.     set from = Begin
  98.     set CommonStatus = STATUS_SUCCESSFUL
  99.     EndWait
  100. Begin = +
  101.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  102.         set StartLabel = removeadapter
  103.         set OEM_ABANDON_SOFTWARE = {+
  104.             $(ProductSTREAMSName)}
  105.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  106.         set StartLabel = UpgradeSoftware
  107.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  108.         Debug-Output "STREAMS.INF: Cannot configure the driver software."
  109.         Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  110.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  111.             Debug-Output "STREAMS.INF: ShellCode error: cannot get an error string."
  112.             goto ShellCodeError
  113.         endif
  114.         set Error = $($R0)
  115.         set from = end
  116.         set to = end
  117.         goto nonfatalinfo
  118.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  119.         set StartLabel = bindingadapter
  120.     else
  121.         set StartLabel = installadapter
  122.         set OEM_ABANDON_SOFTWARE = {}
  123.         set OEM_ABANDON_OPTIONS = {}
  124.     endif
  125.     set from = $(fatal)
  126.     set to = $(fatal)
  127.     goto $(StartLabel)
  128. installadapter = +
  129.     OpenRegKey $(!REG_H_LOCAL) "" $(STREAMS_PATH) $(MAXIMUM_ALLOWED) KeyProduct
  130.     Ifstr $(KeyProduct) != $(KeyNull)
  131.         CloseRegKey $(KeyProduct)
  132.         set Error = $(StreamsAlreadyInstalled)
  133.         set from = end
  134.         set to = end
  135.         goto nonfatalinfo
  136.     endif
  137.     set OEM_ABANDON_ON  = TRUE
  138.     read-syms Billboard1$(!STF_LANGUAGE)
  139.     Shell "subroutn.inf" PushBillboard NETSTATUSDLG $(Status)
  140.     Set BillboardVisible = 1
  141.     Set DoStreams   = FALSE
  142.     Ifstr(i) $(Option) == STREAMS
  143.         Set DoStreams = TRUE
  144.     Else
  145.         Debug-Output "STREAMS.INF: Unrecognized option"
  146.     Endif
  147.     StartWait
  148.     Ifstr(i) $(DoStreams) == TRUE
  149.         Set ThisOption = STREAMS
  150.         Set OEM_ABANDON_SOFTWARE = >($(OEM_ABANDON_SOFTWARE), $(Product$(ThisOption)Name))
  151.         Debug-Output "OEMNXPST.INF: installing STREAMS..."
  152.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer),+
  153.             $(Product$(ThisOption)Name),+
  154.             $(Product$(ThisOption)Name),+
  155.             $(Product$(ThisOption)DisplayName), $(STF_CONTEXTINFNAME),+
  156.             $(Product$(ThisOption)ImagePath),+
  157.             $(Product$(ThisOption)SvcType), "", {}, "",+
  158.             $(NetEventDLL)
  159.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  160.             Debug-Output "OEMNXPST.INF: ShellCode error"
  161.             goto ShellCodeError
  162.         endif
  163.         set RegistryErrorIndex = $($R0)
  164.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  165.             EndWait
  166.             Debug-Output "OEMNXPST.INF: Registry error: add software components"
  167.             CloseRegKey $($R1)
  168.             CloseRegKey $($R2)
  169.             CloseRegKey $($R3)
  170.             CloseRegKey $($R4)
  171.             CloseRegKey $($R5)
  172.             goto fatalregistry
  173.         endif
  174.         Set STREAMSProductKey   = $($R1)
  175.         Set STREAMSNetRuleKey   = $($R2)
  176.         Set STREAMSServiceKey   = $($R3)
  177.         Set STREAMSParameterKey = $($R4)
  178.         Set STREAMSLinkageKey   = $($R5)
  179.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  180.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(Product$(ThisOption)Title)},+
  181.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(Product$(ThisOption)Description)},+
  182.                            {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+
  183.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(Product$(ThisOption)Name)},+
  184.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  185.         Shell  $(UtilityInf), AddValueList, $(STREAMSProductKey), $(NewValueList)
  186.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  187.             Debug-Output "OEMNXPST.INF: ShellCode error."
  188.             goto ShellCodeError
  189.         endif
  190.         set RegistryErrorIndex = $($R0)
  191.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  192.             EndWait
  193.             Debug-Output "OEMNXPST.INF: Registry error: add value list."
  194.             CloseRegKey $(STREAMSProductKey)
  195.             CloseRegKey $(STREAMSNetRuleKey)
  196.             CloseRegKey $(STREAMSServiceKey)
  197.             CloseRegKey $(STREAMSParameterKey)
  198.             CloseRegKey $(STREAMSLinkageKey)
  199.             goto fatalregistry
  200.         endif
  201.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRule$(ThisOption)Type)},+
  202.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRule$(ThisOption)Use)},+
  203.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRule$(ThisOption)BindForm)},+
  204.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRule$(ThisOption)ClassList)},+
  205.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRule$(ThisOption)BindList)},+
  206.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(ThisOption)}}
  207.         Shell  $(UtilityInf), AddValueList, $(STREAMSNetRuleKey), $(NewValueList)
  208.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  209.             Debug-Output "OEMNXPST.INF: ShellCode error."
  210.             goto ShellCodeError
  211.         endif
  212.         set RegistryErrorIndex = $($R0)
  213.         CloseRegKey $(STREAMSProductKey)
  214.         CloseRegKey $(STREAMSNetRuleKey)
  215.         CloseRegKey $(STREAMSServiceKey)
  216.         CloseRegKey $(STREAMSParameterKey)
  217.         CloseRegKey $(STREAMSLinkageKey)
  218.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  219.             EndWait
  220.             Debug-Output "OEMNXPST.INF: Registry error: add value list."
  221.             goto fatalregistry
  222.         endif
  223.     Endif
  224.     EndWait
  225.     Ifint $(BillboardVisible) != 0
  226.         Shell "subroutn.inf" PopBillboard
  227.         Set BillboardVisible = 0
  228.     Endif
  229.     goto successful
  230. configureadapter = +
  231.     goto end
  232. bindingadapter =+
  233.     goto configureadapter
  234. removeadapter = +
  235.     ForListDo  $(OEM_ABANDON_SOFTWARE)
  236.         debug-output "Remove component: "$($)
  237.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), $($)
  238.         ifstr(i) $($R0) == REF_COUNT_NOT_ZERO
  239.             set Error = $(RefCountNotZeroMsg)
  240.             set CommonStatus = STATUS_NO_EFFECT
  241.             set from = end
  242.             set to = end
  243.             goto nonfatal
  244.         endif
  245.     EndForListDo
  246.     goto end
  247. UpgradeSoftware = +
  248.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  249.     Ifstr $(KeyProduct) != $(KeyNull)
  250.         install "Install-Update"
  251.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  252.             goto fatal
  253.         endif
  254.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  255.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  256.         SetRegValue $(KeyProduct) {Description,$(NoTitle),$(!REG_VT_SZ),$(Product$(Option)Description)}
  257.         SetRegValue $(KeyProduct) {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}
  258.         CloseRegKey $(KeyProduct)
  259.     else
  260.     endif
  261.     goto end
  262. successful = +
  263.     goto end
  264. infomsg =+
  265.    read-syms InfoDlg
  266.    ui start "Warning"
  267.    set CommonStatus = STATUS_USERCANCEL
  268.    goto end
  269. warning = +
  270.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  271.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  272.         goto ShellCodeError
  273.     endif
  274.     ifstr(i) $($R1) == "OK"
  275.         goto $(to)
  276.     else-ifstr(i) $($R1) == "CANCEL"
  277.         goto $(from)
  278.     else
  279.         goto "end"
  280.     endif
  281. nonfatalinfo = +
  282.     Set CommonStatus = STATUS_USERCANCEL
  283.     Set Severity = STATUS
  284.     goto nonfatalmsg
  285. nonfatal = +
  286.     Set Severity = NONFATAL
  287.     goto nonfatalmsg
  288. nonfatalmsg = +
  289.     ifstr(i) $(Error) == ""
  290.         Set Severity = NONFATAL
  291.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  292.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  293.             goto ShellCodeError
  294.         endif
  295.         set Error = $($R0)
  296.     endif
  297.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  298.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  299.         goto ShellCodeError
  300.     endif
  301.     ifstr(i) $($R1) == "OK"
  302.         goto $(from)
  303.     else
  304.         goto "end"
  305.     endif
  306. fatalregistry = +
  307.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  308.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  309.         goto ShellCodeError
  310.     endif
  311.     set Error = $($R0)
  312.     goto fatal
  313. fatal = +
  314.     ifstr(i) $(Error) == ""
  315.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  316.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  317.             goto ShellCodeError
  318.         endif
  319.         set Error = $($R0)
  320.     endif
  321.     Ifint $(BillboardVisible) != 0
  322.         Shell "subroutn.inf" PopBillboard
  323.         Set BillboardVisible = 0
  324.     Endif
  325.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  326.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  327.         goto ShellCodeError
  328.     endif
  329.    goto setfailed
  330. ShellCodeError = +
  331.     set DlgType      = "MessageBox"
  332.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  333.     set STF_MB_TEXT  = $(ShellCodeErrorText) 
  334.     set STF_MB_TYPE  = 1
  335.     set STF_MB_ICON  = 3
  336.     set STF_MB_DEF   = 1
  337.     ui start "Error Message"
  338.     goto setfailed
  339. setfailed = +
  340.     set CommonStatus = STATUS_FAILED
  341.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  342.         set OEM_ABANDON_ON = FALSE
  343.         goto removeadapter
  344.     endif
  345.     goto end
  346. end = +
  347.     goto term
  348. term = +
  349.     Return $(CommonStatus)
  350. [Install-Option]
  351.     Exit
  352. [Install-Update]
  353.    set STF_VITAL        = ""
  354.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  355.    AddSectionFilesToCopyList Files-STREAMS $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  356.    Exit
  357. [Source Media Descriptions]
  358.     1 = "Windows NT Server CD-ROM", TAGFILE = cdrom_s.40
  359. [Signature]
  360.     FileType = MICROSOFT_FILE
  361. [GetSignature]
  362.     read-syms Signature
  363.     return $(FileType)
  364. [ProductType]
  365. STF_PRODUCT  = LanmanNT
  366. STF_PLATFORM = I386
  367. [Files-Inf]
  368. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  369. [Files-STREAMS]
  370. 1,STREAMS.SYS , SIZE=999 , NODELETESOURCE
  371. [LanguagesSupported]
  372.     ENG
  373. [OptionsTextENG]
  374.     STREAMS = "Streams Environment"
  375. [FileConstantsENG]
  376. ProCaption   = "Windows NT Setup"
  377. ProCancel    = "Cancel"
  378. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  379.                "Are you sure you want to cancel copying files?"
  380. ProCancelCap = "Network Setup Message"
  381. ProText1     = "Copying:"
  382. ProText2     = "To:"
  383. ProductSTREAMSDescription       = "Enables transport drivers developed in STREAMS environments (popular on UNIX platforms) to port easily to Windows NT."
  384. ProductSTREAMSDisplayName       = "Streams Environment"
  385. ProductSTREAMSTitle     = "Streams Environment"
  386. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  387. ShellCodeErrorText      = "Shell Code Error."
  388. StreamsAlreadyInstalled  = "Streams Environment is already installed in the system."
  389. RefCountNotZeroMsg = "The Streams Environment is currently in use by other network protocols. Please removed all streams-based protocols first."
  390. [DialogConstantsENG]
  391. Help        = "&Help"
  392. Exit        = "Cancel"
  393. OK          = "OK"
  394. HelpContext = ""
  395. Continue    = "Continue"
  396. Cancel      = "Cancel"
  397. [FileDependentDlgENG]
  398. [Billboard1ENG]
  399. Status = "Installing STREAMS and related services..."
  400.